<extend name='Layout/page' />
<block name="content">
	{:widget('PageHeader',array('name'=>array('消息->',$reply_name),'search'=>'N'))}
	<div class="operate-panel">
		<div class="operate-panel-body">
			<div class="pull-left">
				<a onclick="go_return_url();" class="btn">返回</a>
			</div>
			<div class="pull-right">
				<a id="btn_save"  class="btn">发送</a>
			</div>
		</div>
	</div>
	<form  method='post' id="form_data" name="form_data" enctype="multipart/form-data">
		<input type="hidden" id="ajax" name="ajax" value="0">		
		<input type="hidden" id="receiver_id" name="receiver_id" value="{$reply_id}"/>
		<input type="hidden" id="receiver_name" name="receiver_name" value="{$reply_name}"/>
		<input type="text" style="display:none">
		<div class="box">
			<div class="col-xs-12">
				发送消息给 {$reply_name}
			</div>
		</div>
		<div class="box">
			<div class="col-xs-12">
				<textarea  class="simple" id="content" name="content" class="col-xs-12" check="required" info="请输入内容"></textarea>
			</div>
		</div>
		<div class="box">
			<label class="input-label" for="name">附件：</label>
			
				{:widget('file_upload/add')}
			</div>
		</div>
	</form>
	<hr>
	<div>
		<div class="dialogs">
			<foreach name="list" val="vo">
				<div class="row">
					<div class="col-xs-1">
						<div class="user">
							<img class="img-thumbnail" src="__ROOT__/{$vo.sender_id|get_emp_pic}" onerror="javascript:this.src='/Uploads/emp_pic/no_avatar.jpg'"/>
						</div>
					</div>
					<div class="col-xs-11">
						<div>
							{$vo.sender_name}：<span>{$vo.create_time|to_date='Y-m-d H:i'}</span>
						</div>
						<div>
							{$vo.content}							
						</div>
						<p>
							{:widget('file_upload/link',array($vo['add_file']))}
						</p>
					</div>
				</div>
				<hr>
			</foreach>
		</div>
	</div>	
</block>
<block name="js">
	<script type="text/javascript">
		function save() {
			send_form("form_data", '{:url("reply")}');
		}
	</script>
</block>
